function PickDropCup(x)

if x==1
    current = ServoPosition(2);
    MoveServo(2, current - 15, 50);
    Claw(0);
    MoveServo(2, current + 15, 50);
    
    tts('Cup dropped', 'Microsoft Zira Desktop - English (United States)')
elseif x==2
    current = ServoPosition(2);
    MoveServo(2, current - 15, 50);
    Claw(1);
    MoveServo(2, current + 15, 50);
    
    tts('Cup picked', 'Microsoft Zira Desktop - English (United States)')
else
    tts('In Valid');
end
end
